package cn.seaboot.admin.logger.bean;

import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
* POJO
* 方法调用日志 [t_sys_log_service]
* @author ChenSS on 2018/6/20.
*/
@Schema(description = "方法调用日志 [t_sys_log_service] 实体类")
public class ServiceLog implements Serializable {

    private static final long serialVersionUID = 7682961658557849533L;
    /**
    * ID
    */
    @NotNull
    @Size(max = 32)
    @Schema(description = "ID")
    private String id;
    /**
    * 类型
    */
    @Schema(description = "类型")
    private Integer logType;
    /**
    * 日志级别
    */
    @Schema(description = "日志级别")
    private Integer logLevel;
    /**
    * 用户ID
    */
    @Size(max = 32)
    @Schema(description = "用户ID")
    private String userId;
    /**
    * 用户名
    */
    @Size(max = 64)
    @Schema(description = "用户名")
    private String userName;
    /**
    * 机构ID
    */
    @Size(max = 32)
    @Schema(description = "机构ID")
    private String orgId;
    /**
    * 分组ID
    */
    @Size(max = 32)
    @Schema(description = "分组ID")
    private String groupId;
    /**
    * 对象
    */
    @Size(max = 64)
    @Schema(description = "对象")
    private String className;
    /**
    * 函数
    */
    @Size(max = 64)
    @Schema(description = "函数")
    private String methodName;
    /**
    * 请求映射
    */
    @Size(max = 16)
    @Schema(description = "请求方式")
    private String requestMethod;
    /**
    * 请求映射
    */
    @Size(max = 128)
    @Schema(description = "请求映射")
    private String requestMapping;
    /**
    * 入参
    */
    @Size(max = 65535)
    @Schema(description = "入参")
    private String parameter;
    /**
    * 结果
    */
    @Size(max = 65535)
    @Schema(description = "结果")
    private String returnValue;
    /**
    * 异常
    */
    @Size(max = 65535)
    @Schema(description = "异常")
    private String exception;
    /**
    * 描述
    */
    @Size(max = 128)
    @Schema(description = "描述")
    private String operation;
    /**
    * 创建日期
    */
    @Schema(description = "创建日期")
    private java.time.LocalDateTime gmtCreate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getLogType() {
        return logType;
    }

    public void setLogType(Integer logType) {
        this.logType = logType;
    }

    public Integer getLogLevel() {
        return logLevel;
    }

    public void setLogLevel(Integer logLevel) {
        this.logLevel = logLevel;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getRequestMapping() {
        return requestMapping;
    }

    public void setRequestMapping(String requestMapping) {
        this.requestMapping = requestMapping;
    }

    public String getParameter() {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter;
    }

    public String getReturnValue() {
        return returnValue;
    }

    public void setReturnValue(String returnValue) {
        this.returnValue = returnValue;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public java.time.LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(java.time.LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
}
